<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>任务管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
  <link href="/static/js/layui/css/layui.css" rel="stylesheet">
  <script src="/static/js/layui/layui.js"></script>
  <script src="/static/js/common.js"></script>
  <style>
    .layui-layout-admin .layui-body{
      padding-bottom: 0px;
    }
    .body-page{
        padding: 15px;
    }
  </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo layui-hide-xs layui-bg-black">任务管理</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <!-- 移动端显示 -->
      <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
        <i class="layui-icon layui-icon-spread-left"></i>
      </li>
      <!--<li class="layui-nav-item layui-hide-xs"><a href="javascript:;">nav 1</a></li>
      <li class="layui-nav-item layui-hide-xs"><a href="javascript:;">nav 2</a></li>
      <li class="layui-nav-item layui-hide-xs"><a href="javascript:;">nav 3</a></li>
      <li class="layui-nav-item">
        <a href="javascript:;">nav groups</a>
        <dl class="layui-nav-child">
          <dd><a href="javascript:;">menu 11</a></dd>
          <dd><a href="javascript:;">menu 22</a></dd>
          <dd><a href="javascript:;">menu 33</a></dd>
        </dl>
      </li>-->
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
        <a href="javascript:;">
          <img src="//unpkg.com/outeres@0.0.10/img/layui/icon-v2.png" class="layui-nav-img">
          admin
        </a>
        <dl class="layui-nav-child">
          <dd><a href="javascript:;">Your Profile</a></dd>
          <dd><a href="javascript:;">Settings</a></dd>
          <dd><a href="javascript:;" id="logout">Sign out</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
        <a href="javascript:;">
          <i class="layui-icon layui-icon-more-vertical"></i>
        </a>
      </li>
    </ul>
  </div>
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-filter="test"  id="menu" >
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">管理系统</a>
          <dl class="layui-nav-child">
			      <dd><a href="javascript:;" url="user.html">人员管理</a></dd>
            <dd><a href="javascript:;" url="project.html">项目管理</a></dd>
            <dd><a href="javascript:;" url="sysapp.html">标品管理</a></dd>
            <dd><a href="javascript:;" url="app.html">应用管理</a></dd>
            <dd><a href="javascript:;" url="task.html">任务管理</a></dd>
            <dd><a href="javascript:;" url="user_task.html">任务人员</a></dd>
            <dd><a href="javascript:;" url="project_view.html">任务视图</a></dd>
            <dd><a href="javascript:;" url="user_view.html">人员视图</a></dd>
          </dl>
        </li>
        <!--<li class="layui-nav-item">
          <a href="javascript:;">menu group 2</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;">list 1</a></dd>
            <dd><a href="javascript:;">list 2</a></dd>
            <dd><a href="javascript:;">超链接</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item"><a href="javascript:;">click menu item</a></li>
        <li class="layui-nav-item"><a href="javascript:;">the links</a></li>
		-->
      </ul>
    </div>
  </div>
  <div class="layui-body">
    <!-- 内容主体区域 -->
      <iframe width="100%" class="ifra" id="ifra001" src="/html/home.html" name="context" frameborder="0" scrolling="yes" marginheight="0" marginwidth="0"></iframe>
  </div>
  <!--<div class="layui-footer">
     底部固定区域 
    底部固定区域
  </div>-->
</div>
 

<script>
  var height = $('.layui-side').height() - 8;
  $('.layui-body').height(height);
  $('.ifra').height(height);
  $('#menu dd a').click(function(){
    var url = $(this).attr('url');
    $('#ifra001').attr('src',"/html/"+url);
  });

  c.getLoginUser();

  $('#logout').click(function(){
    c.request('user/logout2',{},function(resp){
        if( resp.code == 200 ){
          location.href = "/login.html";
        }else{
            c.message(resp.message);
        }
    });
  });
</script>
</body>
</html>